package com.nondo.rdp.stock.service;

import com.nondo.rdp.auth.domain.User;
import com.nondo.rdp.auth.endpoint.model.Page;
import com.nondo.rdp.stock.domain.SimulateAccount;

public interface SimulateAccountService {
    /**
     * 保存模拟炒股
     *
     * @param simulateAccount
     */
    SimulateAccount save(SimulateAccount simulateAccount);

    /**
     * 根据主键ID删除模拟炒股
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 根据主键更新模拟炒股
     *
     * @param simulateAccount
     */
    void update(SimulateAccount simulateAccount);

    /**
     * 根据主键ID查询模拟炒股
     *
     * @param id
     * @return
     */
    SimulateAccount findOne(Long id);

    /**
     * 分页查询模拟炒股列表
     *
     * @param page
     * @param simulateAccount
     * @return
     */
    Page<SimulateAccount> findAll(Page<SimulateAccount> page, SimulateAccount simulateAccount);

    SimulateAccount findByUser(User user);
}
